hackerrank cut the sticks solution

visit shbcf.ru