Discussion About RAJU AND RANCHO

This is Discussion thread about RAJU AND RANCHO

can someone please tell how to solve this problem as i am able to pass onlytwo of the test cases