Wipro Interview Question

Puzzel