Passing test cases but still buggy. Performance problems.