Pregunta de entrevista de Infogain

Find nearest int for a given integer from a integer array