Pinterest Interview Question

A coding problem that involved lists and dynamic programming.