Inspired by essays by urban children, Mr. Schapiro had the idea for what became a "dark and lovely" Broadway musical.