smart-arse
British, very informal, American, very informal
someone who is always trying to seem more clever than everyone else in a way that is annoying.
OK, smart-arse, do you have a better idea?
Cambridge English Idioms Dictionary