Pergunta de entrevista da empresa Ogury

Two challenges on Codility testing platform.