Pergunta de entrevista da empresa Infogain

Find nearest int for a given integer from a integer array