Indium Software interview question

How to convert ArrayList to Array