Help me in solving STRARR1 problem

My issue

how to solve this question ?

Learning course: Strings using C++
Problem Link: Practice Problem in - CodeChef

Here we are given that if 00 occurs it will be replaced by A and same for other 3 conditions. So we will run a for loop which will check digit and digit on its right. For example if we are checking digit with index 0 we will also check digit with index 1 and according to the condition print that letter. As 1st 2 digits are checked we will go for digits with index 2 and 3 and so on

I hope above explanation helps you. :wink: :smile: