Problem

Return c repeated n times.

Examples

  • repeatChar("*", 3) -> "***"
  • repeatChar("a", 0) -> ""
Compile and test (Ctrl+Enter)