Task: Question Answering
Input (English): 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 ?
Output (English): 18