Use permutation to calculate all possibilities for finding solution for 24 points game.