Meta Interview Question

Leetcode style problems with followup