Beer-song problem