https://python.plainenglish.io/solving-a-respectable-codility-challenge-in-one-line-of-python-b560dacbac00