0.Don't panic!
1.What are the inputs?
2.What are the outputs?
3.Work through some examples by hand
4.Simple mechanical solution
5.Develop incrementally and test as we go(逐步测试)