Back

reverse every word of the sentence except first and last?

Created 2 years ago
298 Views
1 Comments
SakthivelHmOLkh
@SakthivelHmOLkh
SakthivelHmOLkh
@SakthivelHmOLkhProfile is locked. Login

Given a string S consisting of a sentence, the task is to reverse every word of the sentence except the first and last character of the words.
Sample Testcase :
INPUT
guvi coding platform
OUTPUT
gvui cnidog proftalm.

Comments
Please login to comment.