If we need to check weather subsequence can be split in to two or more subsequence with at least 3 consecutive integers, then how [1,2,3]? can be split in two subsequence.
@prakash_karamshi Good point! The word "split" implies what you said (two or more subsequences). Maybe it would be better if the problem description had said: "split them into one or more subsequences" to avoid confusion. Moreover, the phrase "at least 3 consecutive integers" is not completely correct either. See also:
The sequence [1,2,3] satisfies the conditions by itself. Consequently, it doesn't need to be split and returns true.