J.P. Morgan interview question

Describe your method you go through when writing a program