@psaxton If the fact that it is homework is mentioned in the question, then we add a
homework tag. If it's tagged
homework, then we refrain from giving complete solutions. There are plenty of ways to cheat on homework. Doing so publicly on Code Review is likely to get them caught, if the instructor is using any kind of cheat-detection service.