Accenture Interview Question

Aptitude question Two coding questions