Shopee interview question

Mainly leetcode problem, about DFS and array, no dynamic programming. MySQL asked about join.