Danone interview question

Question on accounting treatment- case study, different scenario