Question: who wrote the song when i was your man
Answer: Andrew Wyatt