ActivIdentity interview question

How do you code Java to remove C++ issue