The test cases have an incorrect output by interviewbit for most strings longer than 53 characters.
Expected output is incorrect for test case:
Interviewbit output is 27 for all of these.
Actual correct output is is 53 for all three strings.
There are many strings in the submission test cases that are longer than 53 characters and give an incorrect output.
Also the solution for JS is incorrect and failing test cases for single repeat letters i.e. AAA or AAAAA.