Given integer array nums, return true if there exist indices i<j<k with nums[i]<nums[j]<nums[k], else false. Must run in O(n) time O(1) space.
Input: Integer array nums.
Output: true or false.
Input: [1,2,3,4,5]
Output: true
Explanation: 1<2<3.Input: [5,4,3,2,1]
Output: false
Explanation: Strictly decreasing.Input: [2,1,5,0,4,6]
Output: true
Explanation: 0<4<6.1<=nums.length<=5*10^5-2^31<=nums[i]<=2^31-1