Six Phrase interview question

reverse a string what are constructors prime number code