Exchange interaction of two spin qubits mediated by a superconductor