Palindromic Ancestor Paths

Company: Schrodinger

Difficulty: medium