HSBC interview question

java oops, dbms, situational based coding question (logical)