EY Interview Question

1. String related Java program.