Frage im Vorstellungsgespräch bei Walmart

LeetCode hard problem. Some Java and database what is questions.