Well, firstly don't provide input/output as images - it makes it impossible to anybody to help. Please provide input/output as properly formatted ASCII text using markdown code tags.
Secondly, format your code attempts with proper markdown tags - see reference above.
Thirdly, what're the columns with ENST names?
Make modifications given the points above and maybe someone will help.