Fixed bottom-up DP solution