Pregunta de entrevista de Shell

Everything is based on study case