📝 **Task:** Write `permutations(nums)` that returns ALL orderings of `nums` as a list of lists. Print `permutations([1, 2, 3])`.
📋 Implement the function above. Test cases run automatically.
💡 **Hint:** Re-read the theory if you get stuck — the pattern is right there.