I came across this interesting problem in dynamic programming in today\'s contest..Unfortunately, could not complete the solution. Test case started failing.
Question