Goldman Sachs interview question

Geeks for Geeks puzzle problems