SAIC Interview Question

Code basic algorithms in python