Broken printing press

Report a typo

Replace all occurrences of the characters b, g, and r in a given text with the character x.

Sample Input 1:

bgr is the best format for an image

Sample Output 1:

xxx is the xest foxmat fox an imaxe
Write a program in Scala 3
def hideChars(s: String): String =
??? // Write your code here
___

Create a free account to access the full topic