Goldman Sachs interview question

Standard Questions from geeksForgeeks website