Devsinc Interview Question

factorial coding question and its test cases