Solution for Pool Puzzle initial problem