Tractable interview question

File parsing and validation exercise (python3)