Payoneer interview question

implement the distance between 2 points