Don't take first and last values into consideration


#1

the code requires you to print result only for 1 - n-2 don’t check for n-1 and 0