Goldman Sachs interview question

Arithmetic and coding questions were asked