I have written a code for a coding question on the leetcode. Question is that we are given a vector and we have to find all the permutation of that vector. I have tried this