hackerrank common child : incomplete