Meta interview question

2 medium or hard leetcode problems