Sponsored
Use these hints if you're stuck. Try solving on your own first.
Use three nested for loops to check all the triplets.
Solve with full IDE support and test cases