Infosys interview question

Write program to calculate average speed.