Frage im Vorstellungsgespräch bei Amazon

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