How to transfer shares from physical to demat

How can physical shares be converted and transferred into a demat account?,