Realization of Quantum Maxwell's Demon with Solid-State Spins