BNY Interview Question

Q1 : Diff ways to write Factorial function