Texas A&M University interview question

How to parse through a file to get needed data.