A CHARACTERIZATION OF QF-3 ALGEBRAS