Resolve config precedence

Write codeEasy11 minStripe style

Your task

A settings loader logs every assignment it saw as "source key=value": the source word ("default", "file", or "env"), one space, then the assignment (split that part at its first "="; values may contain spaces and "="). The entries arrive in ARBITRARY order, but precedence is fixed: env beats file, file beats default. For a given key, the winner is its highest-precedence entry; among several entries of the same source, the one appearing later in the list wins. Return a dict of each key's winning value.

Examples

effective_settings(entries: list[str]) -> dict[str,str]
Example 1
Inputeffective_settings(["default retries=3", "env retries=5", "file retries=4"])
Output{"retries": "5"}