An Edinburgh student who suffered a mystery illness has completed an incredible trek - having once been told he’d never walk again.