Nisum interview question

java 8 lemda function implementation to compare and sort array