Solution for problem 91

Also, rename functions to non-exact match if not the final solution