Get Array Input Value Javascript Interviewbit