Water And Jug Problem Leetcode