Implement a Throne Inheritance system using OOP. The system models a royal family where a King is the root, and inheritance follows depth-first order (king first, then children in birth order, recursively). Core operations include: birth(parentName, childName) to add a child to a parent, death(name) to mark someone as dead,…