20-year-old sentenced for rape charge