Circular Edge interview question

java program Aptitude C program