Adding python3 solution for codeeval challenge 140