Sollicitatievraag bij HCLTech

Interview question was about oops , projects, coding- reverse a given string and duplicate elements. Explanation with time complexity and their optimal solution.