Closest Number Hackerrank Solution