added cakes question in cpp