Sorry, but we cannot directly help with homeworks, quoted from the replit’s community standards
You can seek help when you don’t know how to do it after tries, so try it yourself first.
The best we can do is to give minor hints, since this is a homework I’m sure your teacher taught you something about it, try using what you learnt instead of directly seeking for answers.