Pergunta de entrevista da empresa C3 AI

Finishing a HackerRank test with three different questions.