Last Test Case not solving

Last test case is not solving, even after writing the code similar to the hint video