SIRCLO interview question

Explain about the algorithm in the coding task