Ruhi, the question you have given is very elementary question of 1D free fall.
Let u be be the initial vel of the pot when it just enters the window view
now we are given the summed up time when the pot is in the scene, so for analysing motion of the pot when it enters the window view to when it leaves for achieving the max height, the time will be half of the total = 1/4 sec
s = ut + 1/2at2 , take upward dirn as +y , s = +2m , a = -g, t = 1/4 sec
For the answer you have given, take g = 9.8m/s2
It gives u = 9.224m/s
Use this to analse the max height, H = u2/2g which comes out to be 4.34m
H = s + h { h is the height above the windoe that the pot goes }
This means h = 2.34 m