Telefónica interview question

- how to measure the complexity of a function - what is a lambda function in java