Domanda di colloquio di Walmart

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