Meta interview question

Leetcode easy ~ medium Online Assessment