Pergunta de entrevista da empresa Infosys

Split the given string into three parts. java program