Meta Interview Question

1 easy, 1 medium leetcode question