In a dramatic turnaround, India thrashed Australia by eight wickets in the second Test in Melbourne to level the four-match series 1-1.