Question d’entretien chez Nagarro

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