Domanda di colloquio di Microsoft

write a function to return the attribute value if input is in the form of attribute="value". write test cases