HSBC Interview Question

completable future in java8