Meta Interview Question

2 medium or hard leetcode problems