Google interview question

a simple brute force / obscure dp on coding challenge