Brillio Interview Question

program for factorial of a num