Virtusa Interview Question

Write a program on removing duplicates in an arraylist and write a program to reverse a number.