using System.Collections.Generic;
public static void Main()
int[] terms = new int[]{2,4,6,9};
string result = String.Join(",", terms.ToList().ConvertAll(i => "["+i.ToString()+"]"));
string result1 = String.Join(",", terms.Select(x => "[" + x + "]"));
string result2 = string.Join(",", Array.ConvertAll(terms, s => $"[{s}]"));
Console.WriteLine($"Result of first approach : {result}");
Console.WriteLine($"Result of second approach : {result1}");
Console.WriteLine($"Result of third approach : {result2}");