I believe that we just borrow our lives from God. And He is the only one who have right to take them away from us.
For me I am not ok with death penalty,
I preferred let the person have a chance to repent and dont do what he did..They might punish him like clean the toilet everyday, go farming and of course to read the bible.