Meta interview question

two Leetcode style question each interview