ION Group Interview Question

I got two technical questions on dsa and one question on oops.