6. (12 分) Obtain the position of the element $a_{ij}$ in an upper triangular matrix as shown in Figure 3 where $a_{00}$ is in the first position by using (A)Column Major (B) Row Major. $$\left[ \begin{array}{c c c c c} a_{00} & a_{01} & \dots & \dots & a_{0n-1} \\ & a_{11} & a_{12} & & a_{1n-1} \\ & & \ddots & & \vdots \\ & & & \ddots & \vdots \\ & & & & a_{n-1n-1} \end{array} \right]$$