Pergunta de entrevista da empresa Pulley

A long coding challenge involving a series of encoding