Coding Interview - Rosetta Code - 24 game

Coding Interview - Rosetta Code - 24 game
0

#1

Seems that the test cases are not allowing all correct solutions. Eg for solve24(‘1234’) a valid solution like (1+2+3)*4 is not accepted.