FDS interview question

c style string manipulation