* Solution for Euler 56 * Adding Type and Doctest as per guideline * removing unused import * correcting the way type check works