Accenture Interview Question

Nothing as such which was too difficult. Asked me to write a program for factorial.