export function alphabet(option) {
  let letters: any = []

  //set the default value of i & j to print A to Z
  var i = 65
  var j = 91

  //if the option is small set the value of i,j to print a to z
  if (option == 'small') {
    i = 97
    j = 123
  }

  //loop through the values from i to j
  for (let k = i; k < j; k++) {
    //convert the char code to string (Alphabets)
    var str = String.fromCharCode(k)
    //print the result in console
    letters.push(str)
  }

  return letters
}
