Laxino Technology interview question

not that difficult