interview questions on java arrays