In the second example, there are such possible arrays:
\begin{enumerate}
\item $[0, 2, 3]$, the sum is equal to $\overline{a_1 a_1} + \overline{a_1 a_2} + \overline{a_1 a_3} + \overline{a_2 a_2} + \overline{a_2 a_3} + \overline{a_3 a_3}$ = $00 + 02 + 03 + 22 + 23 + 33 = 83$;

\item $[0, 3, 2]$, the sum is equal to $\overline{a_1 a_1} + \overline{a_1 a_2} + \overline{a_1 a_3} + \overline{a_2 a_2} + \overline{a_2 a_3} + \overline{a_3 a_3}$ = $00 + 03 + 02 + 33 + 32 + 22 = 92$;

\item $[2, 0, 3]$, the sum is equal to $\overline{a_1 a_1} + \overline{a_1 a_2} + \overline{a_1 a_3} + \overline{a_2 a_2} + \overline{a_2 a_3} + \overline{a_3 a_3}$ = $22 + 20 + 23 + 00 + 03 + 33 = 101$;

\item $[2, 3, 0]$, the sum is equal to $\overline{a_1 a_1} + \overline{a_1 a_2} + \overline{a_1 a_3} + \overline{a_2 a_2} + \overline{a_2 a_3} + \overline{a_3 a_3}$ = $22 + 23 + 20 + 33 + 30 + 00 = 128$;

\item $[3, 0, 2]$, the sum is equal to $\overline{a_1 a_1} + \overline{a_1 a_2} + \overline{a_1 a_3} + \overline{a_2 a_2} + \overline{a_2 a_3} + \overline{a_3 a_3}$ = $33 + 30 + 32 + 00 + 02 + 22 = 119$;

\item $[3, 2, 0]$, the sum is equal to $\overline{a_1 a_1} + \overline{a_1 a_2} + \overline{a_1 a_3} + \overline{a_2 a_2} + \overline{a_2 a_3} + \overline{a_3 a_3}$ = $33 + 32 + 30 + 22 + 20 + 00 = 137$.

\end{enumerate}