Pergunta de entrevista da empresa The Home Depot

Q: Given ~30 code fragments, order the fragments so that they create a functioning piece of code.