Venturas interview question

java question for collections details