Rewrite return statment in the 36th problem