Pergunta de entrevista da empresa Amazon

Given: List<String> getActors(String actorName) This function takes an actor and returns all the actors they acted with in their career. Use this function to calculate the degrees of separation between one actor to another.