Hackerrank - String Construction Solution
Amanda has a string of lowercase letters that she wants to copy to a new string. She can perform the following operations with the given costs. She can perform them any number of times to construct a new string :
* Append a character to the end of string at a cost