Accenture Interview Question

Functions in python and java