First Common Ancestor in a Parent-Array Tree

Company: Meta

Difficulty: medium