Algotec interview question

delete spaces from string