Object Invoking Another Object's Method

Company: Qualcomm IISc

Difficulty: easy