Hi All,

Can someone find a solution / approach to the problem below. I am looking for best approach (time / space) and request an open discussion on the same from members....

Question:
Given...