TDS deducted on Gratuity

sunil gupta (29 Points)

10 July 2018  
Dear All,
My client is a retired Govt employee. he has received a sum of Rs.1864106 as gratuity and leave encashment Rs. 558166. Govt deducted TDS on total is Rs. 335000.
please help me that his all income exempt than why govt deducted on this amount. and what will be the treatment for it.