Solved problem #40.
Method to check is number pandigital moved from problem 38 solution to
tools/numbers.
Solved problem #41.
Solved problem #42.
Also some methods to work with words and letters moved to tools/words_letters.rb
Updated solution of problem 22 with usage of common functions.
Solved problem #43.