incapsulate Interview Question

some technical salesforce question?