Leetcode Easy Questions Array Contains Javascript