J.P. Morgan interview question

java 8 features