problem_22 done

should probably redo with IO but I haven't gotten there yet