Foundever interview question

Assessment based questions. Very easy