Pregunta de entrevista de Internet Brands

Longest Sum Subsequence. SQL Queries.