Create lengthofastring.cpp

 this is finding lengthofastring in c