Closing arguments were given in the trial of an autistic Bradford man charged with encouraging a teenage girl to die by suicide.