NVIDIA interview question

Power of a number implementation - iterative, recursive and template