Sex offender arrested for giving out candy