naveen's submission of Build the Tree | CodeChef