Variable Is Not Iterable Javascript Interview