Anonymous interview question

Basic DSA, Object Oriented Programming