Infosys interview question

Math question, area of triangle and SQL basic queries