Anonymous interview question

basic aptitude and dsa coding