/**
 * Given a list of words and a letter, return a new list containing only the words that start with that letter.
 *
 * @param words A list of words.
 * @param letter A letter to filter the words.
 * @return A new list containing only the words that start with the given letter.
 */
fun getWordsStartsWith(words: List<String>, letter: Char): List<String> {

    return words.filter { it.firstOrNull()?.toLowerCase() == letter.toLowerCase() }
}
/**
 * Given a list of words and a letter, return a new list containing only the words that start with that letter.
 *
 * @param words A list of words.
 * @param letter A letter to filter the words.
 * @return A new list containing only the words that start with the given letter.
 */
fun getWordsStartsWith(words: List<String>, letter: Char): List<String> {
/**
 * Given a list of words and a letter, return a new list containing only the words that start with that letter.
 *
 * @param words A list of words.
 * @param letter A letter to filter the words.
 * @return A new list containing only the words that start with the given letter.
 */
fun getWordsStartsWith(words: List<String>, letter: Char): List<String> {

    return words.filter { it.firstOrNull()?.toLowerCase() == letter.toLowerCase() }
}