Brighter interview question

write code to parse a text file