Brute Force

One way to solve a problem is by using the brute-force technique. We solve the problem by exhaustively enumerating all the possible solutions and testing them individually. This kind of algorithm can end up doing far more work, but it is easier to implement and understand — sometimes simplicity is better.