Domanda di colloquio di Rakuten

1 easy LC question, 1 hard leetcode question and 3 SQL based queries.