class Solution {
public int solution(String A, String B) {
if(A.equals(B)) return 0;
for(int i=1; i<A.length(); i++){
A = A.substring(A.length()-1)+A.substring(0,A.length()-1);
// A = A 마지막 글자 + A의 첫번째부터 마지막 바로 전 글자
if(B.equals(A)) return i;
}
return –1;
}
}
Heard rumblings about pagcorp. Doing a little research to see what they’re all about. Gonna see if it truly is legit! Learn more at: pagcorp
[1092]MX1888 México: Casino Online y Apuestas Deportivas | Registro y Login,Únete a MX1888 México, la plataforma líder en casino online y apuestas deportivas. Regístrate hoy para disfrutar de los mejores juegos, cuotas competitivas y un login rápido y seguro. ¡Vive la emoción del juego en MX1888! visit: mx1888
[9318]5777bdt Official Login | সেরা অনলাইন স্লট ও দ্রুত বিকাশ পেমেন্ট,5777bdt অফিসিয়াল লগইন করে সেরা অনলাইন স্লট গেমস উপভোগ করুন। দ্রুত বিকাশ পেমেন্ট এবং সহজ নিয়মে খেলার অভিজ্ঞতা নিতে আজই অ্যাপ ডাউনলোড করুন। visit: 5777bdt
[8258]fairplaycricket অ্যাকাউন্ট খোলা ও লাইভ ক্যাসিনো গেম খেলুন,fairplaycricket account খোলা এখন খুব সহজ। বিকাশ দিয়ে ক্যাসিনো ডিপোজিট করে সেরা অনলাইন স্লট গেম ও লাইভ ক্যাসিনো উপভোগ করতে আজই অ্যাপ ডাউনলোড করুন। visit: fairplaycricket
[3822]valleybet লগইন এবং অ্যাপ ডাউনলোড – বিকাশ ক্যাসিনো ডিপোজিট,valleybet-এ লগইন করে অনলাইন স্লট গেম খেলার নিয়ম জানুন। বিকাশ দিয়ে ক্যাসিনো ডিপোজিট করে লাইভ ক্যাসিনো বোনাস অফার বুঝে নিন। আজই জয়েন করুন। visit: valleybet
I was a bit skeptical at first but the welcome bonus actually works exactly as advertised. The interface is super friendly for newcomers and the payout speed made me smile all week. Trust the hype and join the fun at 5557bet
Bingo night just got a whole lot better thanks to this wonderful platform. The room atmosphere is so lively and the power ups keep the excitement going round after round. I really appreciate how fair the RNG system is since I always play with a clear head. Come join the fun and discover why regulars keep raving about your chances here. phbingo8