SIRCLO Interview Question

Explain about the algorithm in the coding task