HCLTech Interview Question

1>reverse string 2>remove space from string