Kinetic energy of a rotating body is K = kI aωb.
Dimensions of the quantities are [K] = [ML2T−2], [I] = [ML2] and [ω] = [T−1].
Now, dimension of the right side are [I]a = [ML2]a and [ω]b = [T−1]b.
According to the principal of homogeneity of dimension, we have:
[ML2T−2] = [ML2]a [T−1]b
Equating the dimensions of both sides, we get:
2 = 2a
⇒ a = 1
And,
−2 = −b
⇒ b = 2