Capgemini interview question

Difference between methods and functions