Type 2 diabetes is a type of diabetes that occurs as a result of problems that exist at birth but be…