Nearest Point Pair Distance in 2D — Coding problem | OneNoughtOne