Pergunta de entrevista da empresa NxtWave Disruptive Technologies

DSA question on Dynamic Programming and 8 Queries in MySQL.