Maveric Systems interview question

1.Write program to find factorial