Here S = Task. After the 1st query S++, the string becomes Taskk. After the 2nd query S+1, the string becomes TaskkTaskk. After the 3rd query ++S, the string becomes TTaskkTaskk.