So I am a beginner in Competitive Coding and started practicing Leetcode questions.
The question is as follows:
Given an array of integers nums and an integer targ