Salesforce Interview Question

2nd round 1. Based on oops basics