Splitting strings

can you share the solution…it can help someone in future…