Pergunta de entrevista da empresa QuantumBlack

HackerRank: LeetCode (Easy-Medium level questions)