Cognizant interview question

max number in the series program in java three tier architecture