Solving of task:
https://www.hackerrank.com/challenges/closest-numbers