https://programmers.co.kr/learn/courses/30/lessons/42577
class Solution {
public boolean solution(String[] phone_book) {
boolean answer = true;
for(int i=0; i<phone_book.length; i++){
for(int j=0; j<phone_book.length; j++){
if(i!=j) {
if(phone_book[i].length()>phone_book[j].length())
continue;
else{
if(phone_book[i].equals(phone_book[j].substring(0,phone_book[i].length())))
return false;
}
}
}
}
return answer;
}
}