Qualcomm Interview Question

General question on software and OOP