LTM Limited Interview Question

write and execute code for factorial