PrivatBank Interview Question

Regarding Java Core