Payoneer Interview Question

implement the distance between 2 points