Question: who wrote the song cake by the ocean
Answer: Joe Jonas