Question d’entretien chez DataStax

How would you go about programming the Kevin Bacon problem?