ANR Software interview question

1.reverse array without extra space 2.hastable vs hashset