maximun product subarry with o(n) time and o(1)space