Walmart interview question

Basic Algorithms