Hotel visit ques

in this question rocket distance is (x1-x2)^2 power two or multiply two

@saiKDr it is power 2
as you can see in the query, answer for 10 10 is given as 200