Given a paragraph, extract number of words which are repeated and give the output of total number of repetitions.
Given a tree, (different class structure was there , but behind it was a tree), calculate the sum of all the paths from root to child and return the maximum sum obtained.