Nagarro interview question

Print top 5 closest elements to a no. From the sorted array given.