New to InterviewBit, needed some clarification regarding TLE

I was solving this problem and it is not given in question what is the maximum size of string possible, so how we can decide under which time complexity we have to do this problem

Click here to start solving coding interview questions