Pregunta de entrevista de Shell

Basic math question and safety