If your facility_Type is a fixed length, and then a rather static (non-dynamic) method of doing it would just be to identify the letter at position 1, 3, 5, 7 and 9.
You do not mention what database you use, but for SQL Server (for example) it could be done something like this:
SELECT
id, name,
CASE
WHEN SUBSTRING(facility_type, 1, 1) = 'y' THEN 'Yes'
WHEN SUBSTRING(facility_type, 1, 1) = 'n' THEN 'No'
ELSE NULL
END AS Ambulance,
CASE
WHEN SUBSTRING(facility_type, 3, 1) = 'y' THEN 'Yes'
WHEN SUBSTRING(facility_type, 3, 1) = 'n' THEN 'No'
ELSE NULL
END AS ward,
CASE
WHEN SUBSTRING(facility_type, 5, 1) = 'y' THEN 'Yes'
WHEN SUBSTRING(facility_type, 5, 1) = 'n' THEN 'No'
ELSE NULL
END AS male_doctors ,
CASE
WHEN SUBSTRING(facility_type, 7, 1) = 'y' THEN 'Yes'
WHEN SUBSTRING(facility_type, 7, 1) = 'n' THEN 'No'
ELSE NULL
END AS female_doctors,
CASE
WHEN SUBSTRING(facility_type, 9, 1) = 'y' THEN 'Yes'
WHEN SUBSTRING(facility_type, 9, 1) = 'n' THEN 'No'
ELSE NULL
END AS operation_theator
from CTE
However, as mentioned it is a rather cumbersome way of doing things.
So if something which needs to run "better" and be more dynamic (for example if expanding the list with more options) I would recommend, finding a method of splitting the y,n,n,y,n into columns.
Again - this vary depending on which database system you use, so it's difficult to advice you on that specifically without more information.