You have an array of integers. Your task is to find the length of the longest subarray that contains only equal integers. For example, if the array is , the longest subarray of equal integers is , with a length of .
Please fill in the blanks below to complete the pseudocode (1-based index):
I encourage you to implement the pseudocode in any of your favorite programming languages and post it in the comment box below.