Number greater than both neighbours

Sign in to test your solution.