Some question about QSTRING problem

the time is 4s before,but why it is 1s now

Stringology is Magic Practice Coding Problem - CodeChef