Etsy Interview Question

Create abbreviated string from the given word