Pergunta de entrevista da empresa Payoneer

Some simple algorithm question with an ASCII catch and some SQL join questions.