Revised Solution

Solution