Beaconfire interview question

String manipulation, Java Core and java 8