Meta Interview Question

two Leetcode style question each interview