You are given an array of integers nums and an integer original.
Search for original in nums. If the value is found, multiply original by original is present in nums.
Return the resulting value of original once it is no longer found in nums.
Constraints:
nums.length
nums[i], original
You are given an array of integers nums and an integer original.
Search for original in nums. If the value is found, multiply original by original is present in nums.
Return the resulting value of original once it is no longer found in nums.
Constraints:
nums.length
nums[i], original