Watch tutorials and explanations by expert teachers that walk through solving this problem.
Eric Programming
Programming Live with Larry
Anish De
ExtremeProgrammer
Linda
Solve more problems to master this pattern