Closest Value Gap in Search Tree - Coding problem | OneNoughtOne