Don’t rush to write code for your next problem?
Here are few steps that you should take before writing code :
1) Uderstand the requirements