Pregunta de entrevista de Providence

Pressure situation and basic coding question