A
Process the characters in order: replace A with Alpha, B with Bravo, and C with Charlie. Remember to read $$$N$$$ (I got a time penalty here).
Code
#include<bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr),cout.tie(nullptr);
int n;
cin>>n;
string s;
cin>>s;
for(char c:s){
if(c=='A'){
cout<<"Alpha ";
}else if(c=='B'){
cout<<"Bravo ";
}else cout<<"Charlie ";
}
return 0;
}



