The parse_arguments function should parse command-line arguments provided to the script and return the parsed arguments as an ArgumentParser instance. The function accepts any number of string arguments, which represent the command-line arguments that the script would typically receive.
The function is expected to:
Use the ArgumentParser class to define the script's command-line options, including:
-s or --source: an optional argument for a YAML configuration file to merge.
-d or --destination: a required argument specifying the destination YAML configuration file, with a default value specified by the constant DEFAULT_DESTINATION_CONFIG_FILENAME.
--overwrite: an optional flag that, when present, indicates that existing destination files can be overwritten. This defaults to False.
When invoked, the function should:
Return an instance of ArgumentParser populated with the values from the provided arguments.
Handle cases where invalid options are provided or required arguments are missing by raising appropriate exceptions automatically.
Note: The solution should be placed in /app/solution.py. The function must be importable as: from solution import parse_arguments.