def adjacentElementsProduct(inputArray): length = len(inputArray) - 1 x = 0 y = 1 firstIndex = inputArray[x] secondIndex = inputArray[y] product = [] while y <= length: product.append(firstIndex * secondIndex) x = x + 1 y = y + 1 return max(product)