Permutation sequence and three sum closest.