Algorithm Uses Dynamic Programming Questions