x = {-1, 1, 0} y = {1, 3, 4} Returns: "Able to catch"
x = {-3} y = {2} Returns: "Not able to catch"
x = {-1, 1, 0} y = {1, 2, 4} Returns: "Not able to catch"
x = {0, -1, 1} y = {9, 1, 3} Returns: "Able to catch"
x = {70,-108,52,-70,84,-29,66,-33} y = {141,299,402,280,28,363,427,232} Returns: "Not able to catch"
x = {-175,-28,-207,-29,-43,-183,-175,-112,-183,-31,-25,-66,-114,-116,-66} y = {320,107,379,72,126,445,318,255,445,62,52,184,247,245,185} Returns: "Able to catch"
{0,0,0,0} {0,0,0,0} Returns: "Able to catch"
Suppose you are at the starting point. Which candy do you have to get next? It has to be the lowest one. So you move to the x value of the lowest one, if you can. At that point, you care about the next lowest one, and so on.
Let's walk example 0. The candies are at (-1,1), (1,3) and (0,4). So:
Now, simulate the game. Let's call your current x value cx, and your current y value cy. You'll start with both of these equal to zero.
Now, you traverse the multimap. Calculate your x distance from the point in the multimap to cx and your y distance from the point in the multimap to cy. If the x distance is greater than the y distance, then you're done -- you are "Not able to catch." Otherwise, update cx and cy, and continue. If you reach the end of the multimap, you can return "Able to catch." Here's a picture of example 4, which shows all of the points that make the answer "Not able to catch."