Luxoft interview question

The best practices to write a good code