Goldman Sachs interview question

1. OOPS concepts 2. strings/array questions