Given a user's preferred language list and a system's supported language list, implement a series of progressively more complex matching functions: Part 1 – Exact Match: Return the subset of user-preferred languages that are exactly present in the supported languages list, preserving user preference order. Part 2 – Partial/Prefix Match:…