Cognizant Interview Question

Java program to calculate rates for different modes of transport