Create problem generator and solution check to play 24 game