Pergunta de entrevista da empresa Codazen

Check if a string is a Palindrome using language of choice. Beware they wont accept reverse() function of javascript. They want a pure loop