HackerRank: Closest Numbers