Update to complete.R

Previous version of complete.R was incorrect. Submitted online using
incorrect submission test. Now corrected and successfully submitted.