maximum path 2 problem