Who ran the webapp and its server? Did that person know that there was a class assignment to brute force passwords?
If so, who complained to digitalocean?
If not, your professor should be fired, because the assignment encouraged students to break the law. Forget DigitalOcean's TOS. Attacking a server without permission is a crime.