I tried to do a foreach but I don't know how to save the iteration for the words and compare with the integer
var words = new List<String> {"Mike", "Mia" ,"Mike", "Frank" ,"Mike", "Lisa", "Joss", "Frank" };
int number = 3;
String find(List<String> lst, int n)
{
//what goes here?
}