HCLTech Interview Question

question related to C# and dot Net