Implement a routine that traverses a file-system tree and deletes every file that is marked as read-only. You are given an absolute path pointing to the entry point; all read-only files located anywhere beneath that path must be removed.
The path follows the hierarchical form root/folder1/folder2/.../folderN/file.ext.
Input: root/folder1/read_only_file.txt
Output:
(read_only_file.txt is a read-only file residing directly under folder1 — it is deleted, so no output is produced.)
is_read_only(path) and delete_file(path)).