partially complete 24 with no javascript permutations implementation