dynamic programming
 
Mugs