Larsen & Toubro Interview Question

Implement linked to remove circle