Create compare.cpp

C++ code to compare the tokens