From what I can understand:
1. Why would you print no if n==2 or n==3? It might still be split according to problem statement.
example: 2,1->[2],[1]
4,3,1->[4,3],[1]
i.e any part might have only one element.
2. Even if we ignore that you are still processing the remaining code so another output might get printed.
3.By splitting, i think, you might have misunderstood as 'splitting in half' but there is no such condition in the problem statement. i.e 1st part may contain 10 elements while 2nd part might contain just 2 or even 1 element or vice versa. you might want to change your approach and check if there is only one or no transaction from strictly decreasing to Strictly increasing.
Hope I could help. Best of luck.