I don't know man. Perhaps suffix and prefix one is gonne be true. Try that one.
why this is giving me 2runtime error in the last ones?
user509735 you are getting "Time limit exceeded" error because your solution takes more than 1 second to calculate the answer.