Brute Force Algorithm Definition