WRONG ANSWER IN LAST 2 TEST CASES. I HAVE CHECKED FOR ALL TRIPLETS AND EVEN PRINTED -1 FOR CASES BELOW 3. CODE BELOW: