Exercise 4 - isPermutation works! (added empty list check aswell)