MongoDB Interview Question

find the closest number in array