Zariski cancellation problem for non-domain noncommutative algebras