Altimetrik interview question

arrylist implementation