https://samirpaul.in/posts/number-of-arithmetic-triplets/
Number of Arithmetic Triplets