Pergunta de entrevista da empresa CRISIL

Input ="virat kohli test"; Output = "tariv ilhok tset" Solve this using java-8 streams.