Pergunta de entrevista da empresa Barracuda Networks

How would you read data from this file and print out results?