Definition: The task is to generate the correct answer for a given math problem.
Input: Problem: 4 balls of different colors are to be placed in 3 different boxes such that any box contains at least 1 ball . what is the maximum number of different ways in which this can be done ?
