Increasing and Decreasing Substring