Cognizant Interview Question

Implementation of method overloading code