Wipro Interview Question

Okay but tough but could do