max rectangle series solved