Radiometer interview question

Write your own string revere function using a data structure in c++