Meta interview question

They asked me leetcode style questions