IBM Interview Question

1 DSA & 1 DB question