X Interview Question

1 sql, 2 coding questions