Im using this piece of code for String Sort problem but im getting one test case wrong can you please tell me where im getting wrong?

Im using this piece of code for String Sort problem but im getting one test case wrong can you please tell me where im getting wrong??

int i = 1; in line 19