IBM Interview Question

python is an algorithm one