Johnson Controls interview question

String based java questions were asked