Added a function at problem 82
Added a function at problem 82