Salesforce interview question

2nd round 1. Based on oops basics