EY interview question

Puzzles - you can use Geeksforgeeks to learn them