WNS Interview Question

Puzzle