DealShare interview question

implementation of power function with or without recursion