In a line up of 10 soldiers, what is the maximum number of soldiers that can be picked in order of either ascending or descending heights?
Creating a sequence that does not have an increasing or a decreasing sequence of length 3 from a set with 5 elements