added 006 c++ solution, 003 java solution