maximal rectangle, Wrong Answer

run time error