Last Updated: 17 May, 2017

Trim spaces

Easy
Asked in company
JUSPAY

Problem statement

Given an input string S that contains multiple words, you need to remove all the spaces present in the input string.

There can be multiple spaces present after any word.

Input Format :
 String S
Output Format :
Updated string
Constraints :

1 <= Length of string S <= 10^6