Meta interview question

Slightly modified Lee code problems