Goldman Sachs interview question

Coderpad: 1 LC easy and 1 LC medium question. Few behavioral questions.