Capgemini interview question

Define apex best practices to write code