Meta interview question

Three straightforward leetcode style questions.