Consider the following strategic game with complete information played by three players. Each player $i ∈ {1, 2, 3}$ chooses her action from $A = \{1, 2, . . . , 10\}$. Utility functions, mapping each action profile $(a_1, a_2, a_3) ∈ A^3$ into utils, of the three players are as follows: $$u_1(a_1, a_2, a_3)=-|a_3-a_1|+|a_2-a_1|$$ $$u_2(a_1, a_2, a_3)=-|a_1-a_2|+|a_3-a_2|$$ $$u_3(a_1, a_2, a_3)=-|a_2-a_3|+|a_1-a_3|$$
The given solution is as follows:
Suppose $a_1 < a_3$. Straightforward argument shows that the set of actions that constitute pure best response for player 2 is $\{1, . . . , a_1\}$. When $a_1 > a_3$, the set is $\{a_1, . . . , 10\}$ and when $a_1 = a_3$, then the set is $\{1, . . . , 10\}$.
This solution is too short for me to understand how to start solving it. I understand the conditions when one is >,< or = but I do not seem to follow how the BR is calculated