RBC Interview Question

I dont recall exactly but some general java questions