Original: It was written by Nelly Furtado, Timothy "Timbaland" Mosley and Nate "Danja" Hills for Furtado's third album, Loose (2006).
Simplified: It was written by Nelly Furtado, Tim Mosley, Nate Hills.