Would you like to use a neural network for this use case?
What kind of exercise is this? I don’t think someone will (and should) give you a full solution if this is some kind of homework.
Have you tried different methods before? If so, where are you stuck?