Upwave Interview Question

SQL queries (medium) JS algorithm challenge (medium)