If base is 3 and exp is 0, then this function will return 1,
If base is 3 and exp is 1, then this function will return 3,
If base is 3 and exp is 2, then this function will return 9,
If base is 3 and exp is 3, then this function will return 27,
If base is 3 and exp is 4, then this function will return 81,
If base is 3 and exp is 5, then this function will return 243,
If base is 3 and exp is 6, then this function will return 729,
If base is 3 and exp is 7, then this function will return 2187,
If base is 3 and exp is 8, then this function will return 6561,
If base is 3 and exp is 9, then this function will return 19683.