Dynamic Programming + Few Stylistic Changes