HSBC interview question

completable future in java8