Pergunta de entrevista da empresa Microsoft

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