Expected answer and my code return the same value, custom test cases and automatic test cases returned correct values