Calculate the determinant of
$$ \left[ \begin{array}{cccc} 1 & 0 & 0 & 0 & \cdots & 1\\ 1 & a_1 & 0 & 0 & \cdots & 0 \\ 1 & 1 & a_2 & 0 & \cdots & 0 \\ 1 & 0 & 1 & a_3 & \cdots & 0 \\ \vdots & \vdots & \vdots & \vdots & \ddots & \vdots \\ 1 & 0 & 0 & \cdots& 1 & a_{n-1} \\ \end{array} \right]$$
I tried to develop at the first line, but got stuck. Any helps or hints appreciated.