Coding Challenge · INTERMEDIATE
A genealogy researcher is planning a family reunion and wants to invite only those relatives who are exactly K generations away from the family patriarch. Given a family tree where each node represents a family member and edges represent parent-child relationships, return the values of all members who are exactly K edg…