Pergunta de entrevista da empresa eDreams ODIGEO

Write form validation using jQuery or JavaScript for a predefined forms. Each form has radio button indicates person or a company. if person, you have to check first name and last name and email to be valid if company, you have to check the company name and the phone number