Morgan Stanley interview question

Given a file with multiple records, write a program to read, process and aggregate the records