Increasing Decreasing Sequence

Given an array S of size N , check if it is possible to split sequence into two sequences -
s1 to si and si+1 to sN such that first sequence is strictly decreasing and second is strictly increasing. Print true/false as output.

@rishank065
whats your doubt in this question?

provide code for this problem

@rishank065
refer to this here

provide code in java

@rishank065
please share your approach and i can help you make corrections in it.