Problem Description
A = "ABC"Input 2:
A = "AACECAAAA"
2Output 2:
2
Insert 'B' at beginning, string becomes: "BABC". Insert 'C' at beginning, string becomes: "CBABC".Explanation 2:
Insert 'A' at beginning, string becomes: "AAACECAAAA". Insert 'A' at beginning, string becomes: "AAAACECAAAA".
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a question? Checkout Sample Codes for more details.