Domanda di colloquio di Infosys

Split the given string into three parts. java program