public static void Main()
Console.WriteLine("Enter array length");
int len = Convert.ToInt32(Console.ReadLine());
int[] arr = new int[len];
for(int i=0; i<len; i++){
Console.WriteLine("Enter val");
arr[i] = Convert.ToInt32(Console.ReadLine());
for(int i=0; i<len-1; i++){
if(currentStreak>maxStreak){
Console.WriteLine($"Total: {total}\nmax: {max}\n{max} occurred {maxStreak+1} times");