Steps To Writing An Algorithm For Dynamic Programming