TP3 - Initial Brute Force Algorithm