Increasing Array Cses Problem Solution