Categories
CMS Magento Mastering Development

How to get parent sku from child sku magento 2

I have a child SKU in an array and I need to get all the parents from the existing child SKUs from the array. Can everybody help me ? Thanks