using System.Collections.Generic;
using System.Threading.Tasks;
namespace ConsoleApplication2
public static void Main(string[] args)
List<List<int>> listSampleNumber = new List<List<int>>()
new List<int>() { 96, 35 ,54, 11, 0, 99, 103, -99, 54, 54, 95},
new List<int>() { 96, 108, 52, -0, 58, 103, -99, 52, 54, 54, 95},
new List<int>() { 320, 2, 96, 108, 103, 1, -99, 52, 54, 54, 312},
new List<int>() { 320, 58, 103 , 1 ,-99 , 500 , 54 , 54 , 51},
new List<int>() { -1, 0, 0},
new List<int>() { 0, -1, 0},
new List<int>() { 0, 0, -1},
new List<int>() { -1, 0, -1},
new List<int>() { 0, -1, -1},
new List<int>() { -1, -1, 0 },
new List<int>() { 0 , 2 },
new List<int>() { 2 , 0 },
new List<int>() { int.MinValue , 0 , int.MinValue },
foreach (var sampleNumbers in listSampleNumber)
Console.Write("######################################\n");
Console.Write("Top 2 Max of [ {0} ] \nis ", String.Join(" , ", sampleNumbers));
var top2Max = GetTop2Max(sampleNumbers);
Console.Write("[ {0} ]\n\n", String.Join(" , ", top2Max));
static List<int> GetTop2Max(List<int> number)
List<int> top2Max = new List<int>();
for(int i = 0; i< number.Count(); i++)
if(number[i] < number[i-1])