Prospecta interview question

some questions from mysql