DBS Bank Interview Question

mostly from java certification in written test