class Solution { public int solution(String str1, String str2) { int answer = 0; boolean result = str1.contains(str2); return result ? 1 : 2; } }
https://school.programmers.co.kr/learn/courses/30/lessons/120908