Updating playground and refactoring max helper method
Adding defensive check around min method and trying it in playground