Dynamic Programming: Workforce Size Problem