Pregunta de entrevista de Infosys

Math question, area of triangle and SQL basic queries