Walmart interview question

Writing pseudocode for relatively simple algorithms.