text: /**
   * Converts the problem difficulty to a string. Useful for displaying difficulty in a user-friendly way.
   * @param {*} level a value between 1 ('EASY') and 3 ('HARD') that represents the problem difficulty.
   */
  const difficultyFromLevel = (level) => {
    var output = '';
    switch (level) {
      case 1:
        output = 'Easy';
        break;
      case 2:
        output = 'Medium';
        break;
      case 3:
        output = 'Hard';
        break;
      default:
        return new Error('Paramater "level" out of range (1-3)');
    }
  
    return output;
  }
  
  module.exports = difficultyFromLevel;
  