You are given two strings:
log → a string representing system activitypattern → characters required to recover a passwordYour task is to find the smallest continuous substring of log that contains all characters of pattern, including duplicate characters.
If no such substring exists, return an empty string "".
Write a function that takes two strings log and pattern and returns the minimum window substring of log. If no valid window exists, return an empty string.