Answers are added

That means your are going to check this condition for every character. This is not efficient. Suppose I gave `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` as input string.