#49. wordCount

wordCount

Background

Description

Given an array of non-empty strings, create and return a Map<String, String> as follows: for each string add its first character as a key with its last character as the value.

Format

Input

Output

Samples

"code" "bug"
{"b": "g", "c": "e"}
"man" "moon" "main"
{"m": "n"}
"man" "moon" "good" "night"
{"g": "d", "m": "n", "n": "t"}

Limitation

1s, 1024KiB for each test case.