Pergunta de entrevista da empresa Teranet

Regarding coding logics. Also some test cases