Wipro Interview Question

Brain games.