Implement a function that determines if a given string consisting of the characters 'A', 'B', and 'C' can be completely erased using a defined sequence of actions. The actions allowed for erasing characters are:
Erasing one 'A' and one 'B'
Erasing one 'B' and one 'C'
Implementation Requirements
You need to create a function can_erase_string(s: str) -> bool that takes a single parameter:
s (str): A string consisting of characters 'A', 'B', and 'C'.
The function should return:
True if the string can be fully erased by the allowed actions.
False if it cannot be fully erased.
Input/Output Requirements
Input: A string s which may contain multiple occurrences of 'A', 'B', and 'C'.
Output: A boolean value indicating whether the string can be fully erased.
Example
Input: "AABBC"
Output: True (can erase as follows: erase 'A' and 'B' twice, then 'B' and 'C' once)
Input: "AAAB"
Output: False (not possible to erase all characters)
Actionable Steps
Implement the can_erase_string function according to the described functionality.
Ensure the code is placed in the file /app/solution.py.