Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.
All 3 solutions fail with incorrect response for an input Array of {3,2,4}
The longest subsequence lenght should be 0 but all the solutions give response as 3.