Pergunta de entrevista da empresa Transport for London

How to deal with different data structure