Persistent Systems interview question

Wrote a factorial program