Capital Trust Interview Question

diff ways of forming string in java