Dinesh Goyal's submission of Family Tree | CodeChef