I swear some of you are so...
First of all, MAX MARTIN PRODUCED THE SONG which OBVIOUSLY means it'll sound like his productions aka Good Thing, LMH, Style, etc. It's common sense
Second, I love Teacher more than any of you, I can assure you but PITBULL released Fun a song which sounds EXACLTY (not similar) as Teacher and released the SAME lyric video. Not only they would have said Nick copied (if he released it even if Nick released it first) but Fun flopped so it wasn't a good sign either, especially considering Teacher got more performances than the other album track Numb and still sold less. So that sound is obviously risky.
Now stop complaining, we haven't even heard 20 second of the song yet