Rice and beans - online puzzle