Larsen & Toubro Interview Question

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