Accenture Interview Question

Implement any algo in C