Js Array Check Duplicates Javascript Interviewbit