int inputs should be consecutively increasing or decreasing. A tricky little exercise, especially to make the code svelte