Cognizant interview question

Largest element in array, oops concepts