Amdocs interview question

Mostly on Java 8 features few codes on string and arry.