Longest Strictly Increasing or Strictly Decreasing Subarray | Leetcode 3105