Domanda di colloquio di DataStax

How would you go about programming the Kevin Bacon problem?