Generate the Contact Monogram

Intermediate

An avatar component shows a monogram for each contact: the upper-case first letter of every word in their full name. Produce that monogram.

Implement `solve(String fullName)` (space-separated words) to return the upper-case first letter of each word, concatenated.

Examples

Input"marc benioff"
Output"MB"
Input"john quincy adams"
Output"JQA"
Hints
  • Split on space; take substring(0,1) of each word and upper-case it.
Anonymous Apex

Your code runs in a secure sandbox against multiple hidden test cases. The problem is solved only when every test passes. Each run is isolated and any data changes are rolled back automatically.