Pergunta de entrevista da empresa Amazon

three some problem from Leet code with optimization, LP of amazon