Given an input string 2A3Bc an expected output of AABBBc must be delivered. One can this be done without getting the input from an external .txt file?