String window question


why it is not passing all test cases…


two small mistakes, comments added