flowers problem