Given an array nums of distinct integers, return all possible permutations, in any order . Input format Input is [nums] , e.g. [[1,2,3]] .