A. Generally, we need for scrutiny of the terms and conditions of the lease deed in respect of Notice period, handing over possession, and Security Deposit.
B. Better fix a date for inspection of the premises to find out whether the premises damaged or not and fully restored as earlier position? Issue a notice by RPAD with respect to the same.
C. Thereafter, both parties will come to a conclusion regarding the condition of the premises as delivered the possession by the lessor at the time of handing over the premises. In case any damages found you are liable to pay the expenses, whatever incurred by the lessor. If damages not found, you are entitled to get the whole security deposit subject to clearance of arrears of rent and miscellaneous charges i.e, painting etc., but it should be mentioned in the lease agreement. However, don't hand over the premises unless obtain SD.
D. Perhaps, the lessor fails to pay the SD even though damages not found, you can approach the Court by filing recovery suit who is rightly pointed out by Mr. Ajay Sethi.