You are given three integers x, y and z, the positions of three people on a number line: person 1 is at x, person 2 is at y, and person 3 is at z and does not move.
Persons 1 and 2 walk toward person 3 at the same speed. Return 1 if person 1 reaches person 3 first, 2 if person 2 arrives first, and 0 if they arrive at the same time.