A top engineer at Elon Musk's DOGE has resigned after his racist comments against Indians resurfaced.