Meta Interview Question

Typical leetcode. But need to be very fast and familar.