Chain-Sys Interview Question

easy question in java and oops