def solution(s): words = s.split(' ') answer = [] for word in words : answer.append(word.capitalize()) result = ' '.join(answer) return result