The age-old question of which came first, the chicken or the egg, has puzzled philosophers and scientists for centuries.