1class Solution {2public int repeatedStringMatch(String a, String b) {3String copyA = a;4int count = 1;5int repeat = b.length() / a.length();6for (int i = 0; i < repeat + 2; i++) {7if (a.contains(b)) {8return count;9} else {10a += copyA;11count++;12}13}14return -1;15}16}