add dynamic program solution for work break problem