Pregunta de entrevista de Pocket Gems

Graph copy, least missing number