Answer the following question based on the information given below.
Two binary operations ⊕ and * are defined over the set {a, e, f, g, h} as per the following tables:
Thus, according to the first table f ⊕ g = a, while according to the second table g * h = f, and so on.
Also, let f2 = f * f, g3 = g * g * g, and so on.
What is the smallest positive integer n such that gn = e?