javascript array interview questions