Leetcode 1600. Throne Inheritance | Hello Interview