Improved solution for challenge 144 easy