The Home Depot interview question

i dont remember was not difficult though