Cognizant interview question

Max ele with some condition