Created a python version for problem 3 as cpp floating points are not adequate. Work in Progress