URS Systems interview question

He asked my pyramid number problem and coin change problem using dynamic programming.