Meta Interview Question

They are from leetcode or similar type, med-hard difficulty