query only first letter string

Solutions on MaxInterview for query only first letter string by the best coders in the world