Add solution and tests for isIncreasing