Help me in solving STR5V2 problem

My issue

how to traverse in c++

My code

#include <bits/stdc++.h>
using namespace std;

int main() {

  string word = "Programming";



  return 0;
}

Learning course: Learn C++
Problem Link: CodeChef: Practical coding for everyone

@kabi2005
Traversing means looping through the array or string by their index .
U can use any form of loop for, while or do while .