Pergunta de entrevista da empresa Pulsenics

Some weird brain teaser and algorithm question