Toppr.com interview question

Basic Interview Puzzles