Thinkmax interview question

How to code and best practices