Answer:
Part a)

Part b)

Step-by-step explanation:
Here by energy conservation we can say
initial total energy = final total energy
now we have

now we have

now we have

Part b)
Now again at maximum height the final kinetic energy will be zero
so we have

now we have

now we have
