Andrii Maksai's submission of Sherlock and Subtrees | CodeChef