Company question banks are included with the Insider plan.
Given an array nums of distinct integers, return all possible permutations. You can return the answer in any order.
nums