the problem prepare_meal, written in java