class Solution {
boolean solution(String s) {
boolean answer = true;
return answer;
}
}
class Solution {
boolean solution(String s) {
boolean answer = false;
int count = 0;
s = s.toLowerCase();
for (int i = 0; i < s.length(); i++) {
if (s.charAt(i) == 'p') {
count++;
} else if (s.charAt(i) == 'y') {
count--;
}
}
if (count == 0) {
answer = true;
}
return answer;
}
}