Recently My friend gave a test in which he got this question(link given below), I tried my best to solve this problem but couldn\'t get much far, Can someone Please provide