Goldman Sachs Interview Question

Normal behaviour question and few DSA problems