Gupy interview question

Teste de logica bem simples