J.P. Morgan Interview Question

They asked about common DSA questions