Problem
Describe a dynamic programming algorithm for determining whether you can buy exactly n cupcakes using boxes of 4, 6, and 9 cupcakes. Your answer should be a boolean-valued function of the following form:
CUPCAKEDP(n):
// your code here
What's the runtime of your algorithm?