NTT DATA Interview Question

Write a program to find factorial.