estudando brute force and backtracking