Nonclassical rotational inertia fraction in a one-dimensional model of a supersolid