diagonal difference hackerrank solution in python 3 github