Flipkart interview question

Find Number of Monotonestically Increasing or Decreasing subsequences in the given array.