The number of ways to arrange n distinct items in a row is:
n
Return n!n!n!.
solve(5) -> 120
Sign in to write and run your own code.
solve(...)