I have implemented the solution for this problem using Dictionary and then using HashSet int[] inputArray = new[] { 1, 5, 8, 2, 9, 5, 7, 4, 3, 6 }; int SumToFind = 10; Dictionary<int, int> _results = new Dictionary<int, int>(); Console.WriteLine("Using Dictionary"); for (int i = 0; i < inputArray.Length; i++…