function solution(s){
let answer=true;
if(s.length===0){
return answer;
}
const p=[...s].filter(char=>char==='p'||char==="P").length;
const y=[...s].filter(char=>char==='y'||char==="Y").length;
if(p!==y)
answer=false
return answer;
}