Pregunta de entrevista de Munich Re

A coding question, basic of data engineering concept