…sers gives requirement like this and experienced programmer know that “devil is always in details”. Before doing anything, first step is to understand the purpose and then think what is missing.
His script was not removing files after archiving. Though this was not stated as part of requirement, its an implicit requirement, until interviewer specifically mentioned not to do so.
He did not excluded archive files created by script itself, which means in next month script will also include last month’s archive. If you are not monitoring, you will only realize this problem when you need to retrieve something …