class Solution { public int solution(String my_string, String is_suffix) { String tmp; int answer = 0; for (int i = 0; i < my_string.length(); i++) { tmp = my_string.substring(i); if (tmp.equals(is_suffix)) answer=1; } return answer; } }