RE (other) on the last test case Problem- Boring String (BORSTR)

Here’s my solution-
Submission
Thank You.