Minimum window string problem, refactor the code, extract the common code to be a dedicated counting map class.