MongoDB interview question

find the closest number in array