Qualcomm interview question

Not anything too difficult, know some object-oriented basics