You need to work for minimum 4 years and 6 months continuously in an organization for getting the gratuity. But you got suspended after 4 years so continuity broke.
Advised to file specific performance suit against the bank for getting gratuity if denied.