Meta interview question

two leetcode one easy one medium bot tagged meta