Pergunta de entrevista da empresa GEP

Given a 3 digit number, find the nearest occurring cube.