Json Array Not Iterable Javascript Interview Programming