https://www.hackerrank.com/challenges/common-child