C++ Code for The sword tooffer  55