https://practice.geeksforgeeks.org/problems/count-triplets-with-sum-smaller-than-x5549/1