Amazon interview question

Given a tree return all parents