Data Foundry Interview Question

Question from OOP and DSA