Tech Mahindra Interview Question

Java basics