using System.IO; using System; using System.Collections.Generic; class ETL { public static Dictionary Transform(Dictionary> inp) { Dictionary ret = new Dictionary(); foreach(KeyValuePair> entry in inp) { foreach(string val in entry.Value) { string v = val.ToLower(); if(!ret.ContainsKey(v)) { ret.Add(v, entry.Key); } } } return ret; } }