swapping powered by(view source)

Description swapping the values from before and after function
Output