Pergunta de entrevista da empresa ACKO General Insurance

Given a triangle, find whether a test point lies inside or outside this triangle?