For a 3-day road trip from Bangalore, the most efficient and practical plan is to cover Rameshwaram first and Madurai second.
Starting with Rameshwaram (the further point) on Day 1 while you are fresh allows for a significantly shorter and more manageable drive back to Bangalore from Madurai on Day 3. This sequence avoids a grueling 12-hour drive on your final day.