Mphasis interview question

very hard