The given equation is $\ \ \ \ \ \ \ \ \ \ \ \ \ \ n = \frac{A + B}{\lambda^{2}}$ Where $A\ and\ B$ are constants. By homogeneity principle the dimensions of all the terms on both sides should be same $ie,\ \ \ \ \ \lbrack B\rbrack = \lbrack A\rbrack = \left\lbrack n\lambda^{2} \right\rbrack$ $\therefore\ \ \ \ \ \ \lbrack B\rbrack = \left\lbrack M^{0}L^{0}T^{0} \right\rbrack\left\lbrack L^{2} \right\rbrack$ $\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ = \left\lbrack M^{0}L^{2}T^{0} \right\rbrack$