Problem Description
A = 1
Input 2:
A = 2
2
Output 2:
4
Let the two people be 1 -> Ram 2 -> Shyam Then the possible arrangements are {1, 2}, {2, 1}
Explanation 2:
Let the three people be 1 -> Ram 2 -> Shyam 3 -> Third friend Then the possible arrangements are {1, 2, 3}, {3, 1, 2}, {2, 1, 3}, {3, 2, 1}
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a question? Checkout Sample Codes for more details.