Infosys Interview Question

Math question, area of triangle and SQL basic queries