A study in humility, Mahatma Gandhi’s dedication to Indian independence and nonviolent protests had its roots in a personal encounter with racism and inequality.