Accenture interview question

Implementare logiche basi in java