Cisco Interview Question

remove all adjacent duplicates in string. new version