NVIDIA Interview Question

write a cpp program on factorial for which they provide you the template?