Pregunta de entrevista de Jane Street

Using Excel to do some basic calculation.