Meta interview question

2 leetcode easy and 2 medium