Electric Mind interview question

encode and decode string leetcode style question.