Pregunta de entrevista de Goldman Sachs

Arithmetic and coding questions were asked