Capgemini interview question

print your name and add all the characters in string in java