using System.Collections.Generic;
namespace DimensionalTest
public static void Main(string[] args)
var dollarWords = new DollarWords();
var wordList = new[]{"job", "Practice", "ironized", "non-stop"};
var results = dollarWords.GetResults(wordList);
foreach (var result in results)
Console.WriteLine(result);
LetterScoreAlgorithm algo;
algo = new LetterScoreAlgorithm();
public IEnumerable<string> GetResults(IEnumerable<string> wordList)
List<string> rtn = new List<string>();
foreach (var word in wordList)
if (getWordScore(word) == 100)
private int getWordScore(string word)
select algo.getLetterScore(x)).Sum();
public class LetterScoreAlgorithm
public int getLetterScore(Char letter)
return(isValidLetter(letter) ? Char.ToUpper(letter) - (int)'A' + 1 : 0);
private bool isValidLetter(Char letter)
return (letter >= 'A' && letter <= 'z');