UKG Interview Question

DSA: Two sum question and nth node from last of LL