Rain water harvesting

test case 1,2,3 failed .https://ide.codingblocks.com/s/218630