Write the intermediate steps for the following reaction:

Write the intermediate steps for the following reaction: