script takes input list and returns a list of items with clubling all possible perms exists in input list