Meta interview question

Code efficiency and best practices