HARMAN Interview Question

factorial and Fibonacci program they asked