Former security engineer Shakeeb Ahmed was sentenced to three years in prison after prosecutors said he hacked two decentralized exchanges.