The Home Depot Interview Question

Code Scramble in pseudo code