Write a program or function in the language of your choice that can convert a string of one base to a string of another base. Input should be the number to be converted (string), from-base (base-10 integernumber), to-base (base-10 integernumber), and the character set (string). Output should be the converted number (string).