Goldman Sachs interview question

Maybe the behavior part