Esko interview question

general python basics and logical reasoning