The alphabet for all of the following problems is the same: A, B, C, and null. But I can use an additional character D if I want for this problem.
The initial tape is (A+B+C)*
The initial stack is empty
The final tape is empty
The final stack contains only the character that is most commonly found on the initial tape
I'm trying to think of an algorithm to solve this problem, but I'm not coming up with anything.