Easy & Beginner Friendly Approach For Beginners.
IntuitionApproachBruteForce ApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->
BruteForce Approach
# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->
       O(N * N)
- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ --> 
       O(1)
# Code
```java []
class Solution {
    public int numOfPairs(String[] nums, String target) {
        int n = nums.length;
        int count = 0;
        for(int i=0; i<n; i++){
            for(int j=0; j<n; j++){
                if(i != j && (nums[i] + nums[j]).equals(target)){
                    count++;
                }
            }
        }
        return count;
    }
}
```
['Java']