Wells Fargo interview question

Fetching Data Hierarchy through Sequel