Accenture interview question

Functions in python and java