Mphasis Interview Question

Not easy