Invitation to Dementia 2020 (Rated for Div. 2) on CodeChef

@dj_r_1 can you please help me out in the 3rd problem. Help required in Problem- BEACIRC (Beautiful Circles)