Decos interview question

Write factorial program for given number