Duplicate Char formatting

Im getting a output of hel*l , im not getting where exactly , im going wrong

Hey @sounakume it is because the index s[j+2] doesn’t exist in your string, you cannot access indices greater than the length of your existing string . Instead try this code which prints side by side https://ide.codingblocks.com/s/186466

Got it, thank you