Compilation Order

Try to solve the Compilation Order problem.

Statement

There are a total of nn classes labeled with the English alphabet (AA, B ...