Pergunta de entrevista da empresa Tibra

Some coding, and a similar triangle problem