JM Foods interview question

Not very tough. Crackable interview