Pergunta de entrevista da empresa Tata Consultancy Services

create a custom function on the spot (asked me to create a custom function to remove everything after hyphen in 'SH109365-00'