Mobicip interview question

Logical puzzles from geeksforgeeks