Virtusa interview question

Q: Remove space from String. Q: Sort given array using any sortng algorithm.