This. The purpose of the assignment is not to produce a solution. I already have one, I don't need 50 more. The point is to practice a skill. Once you can do it yourself, you can also revise what you find from Stack Overflow or ChatGPT.