Federato Interview Question

Leet-style coding question and a complex SQL query question.