Rakuten Interview Question

1 SQL, 1 DSA question