solution 178. Best Hand