Discuss the key benefits and strategies of coding. What are the potential dangers to avoid while coding interviews?

Discuss the key benefits and strategies of coding. What are the potential dangers to avoid while coding interviews?