Approach hintTry it first, then revealHide
Keep Alice's index on the left and Bob's on the right with their running totals, and always advance the side whose total is smaller. Whenever the totals are equal, the candies eaten so far form a candidate answer.