Implemented PeopleCircle problem in SRM 147 DIV 1