give integer array num return true exist triple index j k j k numsi numsj numsk if index exist return false example 1input num 12345output trueexplanation any triplet j k validExample 2input num 54321output falseexplanation no triplet existsexample 3input num 215046output trueexplanation the triplet 3 4 5 valid nums3 0 nums4 4 nums5 6 constraints1 numslength 5 105231 numsi 231 1 Follow could implement solution run on time complexity o1 space complexity