Pergunta de entrevista da empresa Infosys

they have asked me the sql part too write a query to fetch the last 2 data in a table