For the solutions please click here