Solution Using Hooks.

Complete and Continue