Returns the minimum cost to form a n - copy string Here , x -> Cost to add / remove a single character ' G ' and y -> cost to append the string to itself
int findMinimumCost ( int n , int x , int y ) { int * dp = new int [ n + 1 ] ;