Bank of America Interview Question

convert array to arraylist in java