Lloyds Banking Group interview question

Java based and output questions