Pl help debug my code
@spagire4 You are not doing the change in your string, when query of type-1. It is required because in other upcoming queries it may again try to update a character at same index.
Mark this doubt as resolved if you are able to solve it now.