1010data interview question

first the closest point from target