ReDIM interview question

Basics of java and dot net