Questions: 2 Time: 60 mins
Question: 1
Question: 2
Edit: I was able to solve both partially. Can anybody tell me the efficient solution for both?