completed algorithm for string encoding problem in ./algo/body. added a getNumDigits function to EncodeString class instead of within-function digit counting