InfinityLabs R&D Interview Question

implement power function, implement string reverse function.