add a test function

testing isPermutation on static length of array's and variable length