Solve a two-jug measuring problem | Snapchat Interview Question