HCLTech interview question

String reversal , doubly linked list, array sort