Adding solution for problem 19.
Adding solution for problem 20.
Adding solution for problem 21.
Adding solution for problem 22.