Entransys Interview Question

Q1: Basic questions on java Q2: Pattern programs?