Mphasis Interview Question

It was a puzzle.