HCLTech Interview Question

reverse element in array code