Random Integer Array In Javascript Interview