Eigen Value of a upper triangular matrix = Principal diagonal elements.
The above matrix is a upper triangular matrix, thus the Eigen Value of the above matrix is 1 and 0 (diagnal elemnts).
Number of non zero Eigen values of a matrix = Rank of that matrix.
Therefore the rank of above matrix=1.