During his trip in South Africa, President Obama was treated to an impromptu rap.