14. Challenge print initial of a person

14.1 Challenge - print the initials of a name with last name in full

Here are the requirements of this challenge.

Below is the name of a director.

Paul Thomas Anderson

You need to write a proram which will print his name in the following format.


Similarly if the name of person is Neil Patrick Harris then the result of the program should be N.P.Harris.