Morgan Stanley interview question

create you own Arraylist.