Replaced stupid solution with stack-based solution. Got Runtime Error. Bored.