Maximum Product Subarray : O(n)

time complexity is O(n) and space complexity is O(1)