A prison sentence is a term of confinement in a penal institution, such as a…