A run is a sequence of adjacent repeated values. For example, the array with elements
1 2 2 2 1 3 3 2
has two runs: 2 2 2 and 3 3.
Your job is to compute the length of the longest run. For example, with the preceding array, the longest run 2 2 2 has length 3.