Can you check to see if a string has the same amount of 'x's and 'o's?
XO("ooxx") => true XO("xooxx") => false XO("ooxXm") => true XO("zpzpzpp") => true // when no 'x' and 'o' is present should return true XO("zzoo") => false
Note: The method must return a boolean and be case insensitive. The string can contain any character
Want to propose a challenge for a future post? Email firstname.lastname@example.org with your suggestions!