This challenge is related to the BF language. Note that challenges that require the answers to be in a specific language are generally discouraged.

The language Brainfuck is an esoteric language that has 8 instructions:

  • > moves the pointer to the right.
  • < moves the pointer to the left.
  • + increments the byte at the current pointer.
  • - decrements the byte at the current pointer.
  • . outputs the byte at the current pointer as a character.
  • , accepts a character as input and stores it as a byte at the current pointer.
  • [ jumps forward to the instruction after the matching ] if the byte at the current pointer is 0. If it is not 0, just go to the next instruction.
  • ] jumps back to the command after the matching [ if the byte at the current pointer is nonzero. If is is zero, just go to the next instruction.

All characters other than the ones listed above are ignored, unless you use a Brainfuck derivative that also accepts some other characters.