Pergunta de entrevista da empresa Kadabra

One table in MySQL. Question on the following topic: Monthly cost to daily records