Toppr.com interview question

basic puzzles