Added beginner solution in Python