HP Inc. interview question

write a python program to parse a data file