Strings- odd even characters

in this example is given abcg so a is 0 index b is at 1 index and so on right?

yes first character is at even position
which you have to increase