Work done against gravity to climb upwards is always stored in the form of gravitational potential energy
so we can say

here h = vertical height raised
so here we know that

here we have

now from above equation


so work done will be given by above value