BNY interview question

Default java interview questions and one logic task