PrivatBank interview question

Regarding Java Core