SAS Interview Question

How to give an algorithm for circle