Thomson Reuters Interview Question

OOPs concept