Exact solution of the totally asymmetric Oslo model