using System;
using System.Collections.Generic;
using System.Text;
public class Program
{
public static void Main()
Console.WriteLine("ME!");
int[] tests = new int[] {1, 3, 1, 2};
int output = stockmax(tests);
}
// Complete the stockmax function below.
static int stockmax(int[] prices)
int shareCount = 0;
int totalProfit = 0;
for (int i = 0; i < prices.Length; i++)
return 0;