Pergunta de entrevista da empresa Nagarro

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