Add a function for generating Pythagorean triplets with the given sum
Add s solution to the 39th problem
Add solutions to the problems 40-42