Sorry i was nt able to align columns in a clear manner ..
It may take a bit of practice, but yes, you are able to align things. . .
When posting, use the "Code" tag which will preserve alignment and greatly improve readability. From your terminal screen, use copy/paste and then Code. Below the box being typed in is a Preview function. This will let you see your post as the forum will see it. When you are satisfied with the appearance, click Submit.
You need to practice using Preview and do not Submit until the preview looks the way you want it.
Repeating what you initially posted with almost no clarification will not help you get a useful answer. . . Do not post 2 outputs/answers as you have done both times. You need to post a more comprehensive set of input (3 rows is not very comprehensive) and the "output" you would want from that exact sample input. This should not be difficult to do, but may take a bit of work. When posting this, you would practice using the "Code" tag. Once you have used it a time or 2 it becomes almost automatic.
Keep in mind that the burden of getting useful replies from the forum is on the person posting the question. While your requirement and data may be completely clear to you, they are not to others who would help if they understood what was needed.