Consider a simple pendulum, having a bob attached to a string

Consider a simple pendulum, having a bob attached to a string, that oscillates under the action of the force of gravity. Suppose that the period of oscillation of the simple pendulum depends on its length (2), mass of the bob (m) and acceleration due to gravity (g). Derive the expression for its time period using method of dimension.