Biggest Perfect Subtree After Removing Nodes

Company: American Express

Difficulty: medium