Pergunta de entrevista da empresa Larsen & Toubro

pseudo codes for Two sum, and Reversing first and last digits of a number without using string