Meta interview question

1 easy, 1 medium leetcode question