REXA Interview Question

Standard coding question - Char manipulation