Worked with greatest product of adjacent numbers logic