Cognizant interview question

java algorithm or flowchart to print largest between three numbers