Home Depot Canada interview question

One problem I encountered and how did I solve it?