Here I will show the brute force and the optimized solution for this problem. Problem Statement: Given an array of integers nums and an integer...