Difficult problem, create local boolean, determine if number is alone
but check against length of array, then check if values of i + 1 and i -
1 are not the same.  then using Math.max to determine which value is
bigger.