Walmart interview question

Python I/O operations, file handling