Not getting correct output

@Bhavya_Goel
wrong calculation of height corrected