# From $str2 = "ATCGC[ATCG]"; # into $ans_of_str2 = [ # 'ATCGCA', 'ATCGCT', 'ATCGCC', 'ATCGCG', ];