using System.Collections.Generic;
public static void Main (string[] args) {
public static List<string> MostFrequentTrucks(List<string> truckIds, int topNumTrucks)
return new List<string>();
public static void TestCase1()
var truckIds = new List<string>(){
var result = MostFrequentTrucks(truckIds, topNumTrucks);
Console.WriteLine(result.Count() == 2);
Console.WriteLine(result.Contains("truckId1"));
Console.WriteLine(result.Contains("truckId2"));
public static void TestCase2()
var truckIds = new List<string>(){
var result = MostFrequentTrucks(truckIds, topNumTrucks);
Console.WriteLine(result.Count() == 3);
Console.WriteLine(result.Contains("truckId1"));
Console.WriteLine(result.Contains("truckId2"));
Console.WriteLine(result.Contains("truckId3"));