Etsy interview question

Create abbreviated string from the given word