Tech Mahindra Interview Question

how to print in java