JSFiddle - React, Tailwind, and code Playground

JavaScript

/**
 * Given an arbitrary input string, return the first nonrepeated character in
 * the string. For example:
 *
 *   firstNonRepeatedCharacter('ABA'); // => 'B'
 *   firstNonRepeatedCharacter('AABCABD'); // => 'C'
 */

var firstNonRepeatedCharacter = function(string) {

};