Walmart interview question

Round1: DS Algo Round2: Java Questions