OnMobile interview question

1.Write a program for reverse a string? 2.Remove the duplicate num in list.