LTM Limited interview question

1) Reverse of a string 2) Remove duplicate elements from an array