Pergunta de entrevista da empresa Google

Create a data structure to accept two digit and calculate the distance in graph.