Further fixing syntax errors for sliding method

fixed "a++" on line 19, to "a++;" due to test file throwing an error.