The Outlook email service is directly connected to your Microsoft account. If you wish to edit your phone number in Outlook, then you’ll be editing in your Microsoft Account profiles.
In this program, our task is to remove all the white-spaces from the string. For this purpose, we need to traverse the string and check if any character of the string is matched with a white-space character or not. If so, use any built-in method like replace() with a blank.