solution in python3 for "itertools.product()" problem on HackerRank's website. If you have any questions regarding my code, feel free to ask in the comments :)