Pergunta de entrevista da empresa Vention

Live coding question similar to leetcode.