Write a method that tests if a string contains 'x' or 'x' on either side of the string (as first letter or last letter). store the result in a boolean called haschar.
note: make sure that the string text passed as parameter contains at least one letter so the method doesn't crash, otherwise return false.
answer:(penalty regime: 10, 20, 30, 40 %)