count triplets hackerrank solution

welcome to shbcf.ru