Noon Academy interview question

2 problem solving questions, plus a system design question.