Chain-Sys interview question

easy question in java and oops