Walmart Interview Question

Writing pseudocode for relatively simple algorithms.