Infosys Interview Question

Asked on Java patterns