Pergunta de entrevista da empresa Anonymous

Based on arrays , dynamic programming,graphs