add getPermutation.cpp