Wiktionary
work like a charm
vb. (context simile English) To be successful as a solution
vb. (context simile English) To be successful as a solution