Pergunta de entrevista da empresa Google

time complexities, dynamic programming coding question