Cognizant Interview Question

java algorithm or flowchart to print largest between three numbers