tried to reduce problem #4 solve time