I have this code:
for (int i = strlen(str) -1; i >= 0; i--)
     if (str[i] == '\t')
         str[i] = str[i+1];
And I don't know how to find the solution for time complexity (Big O). The solution should be O(n^2log(n)) or O(nlog(n)) (in worst case). Thank you for your advice.

\t: it will take something from outside of the array.