There's actually a built-in power method in Ruby, so this one's kiiiind of a trick question.

def pow(v1, v2)
  v1**v2
end