First problem brute solution