Problem trdnjav na šahovnici in požrešna metoda