finished printListItemsContainingWord, reverseWords and printAllPermutations