I have two arrays whose elements are one to one mapped.
string [] denom = new string[] { EUR, GBP, EUR, USD, USD};
int [] count = new int[] { 1, 3, 4, 7, 8};
EUR - 1
GBP - 3
EUR - 4
USD - 7
USD - 8
I want to get an output into an array by summing the count based on the denom
So, EUR - 5 (1 +4), GBP - 3, USD - 15 (7+8)
The output array should have values like {5, 3 , 15}
We have a logic to remap the final count with Denoms (i.e, EUR, GBP, USD)
We want the logic in C#.net
