Home Delivery

Hi,
Kindly tell why it is taking around 4 sec .

Any Suggestion to improve it .
http://www.codechef.com/viewsolution/3930830

Thanks
rajesh