Meta interview question

Typical Algorithm/Data Structure Problem and SQL Joins/Functions