This is simple approach to solve DDoS.
DDoS is Distributed Denial of Service attack where the hacker tries to make the resources unavailable to the intended users by making excessive unnecessary request to the server. A DoS or DDoS attack is analogous to a group of people crowding the entry door of a shop, making it hard for legitimate customers to enter, disrupting trade.(Wiki)
Have a working Java in your computer and clone this repository.
Call the solution function with array of requests with client name and limit number. Limit number is maximum number request that a client can make in one minute.