Solution for the parallel census 332 homework