Pergunta de entrevista da empresa BSG ITSoft

Reverse the String without using the .length method and count the distinct character in a string.