Nearest Zero Distance - Coding problem | OneNoughtOne