Pair Values

You are given two integers a and b.

Create a pair of integer, integer and store these values such that:

  • First element = a
  • Second element = b

Return the pair.

Example 1:

Input: a = 5, b = 10

Output: 5 10

Example 2:

Input: a = -20, b = 50

Output: -20 50

Still unsure what the problem is asking ?

Let’s go through a few more examples, step by step, to make it clearer.

Constraints:

  • -100 <= a, b <= 100

Hints

0
class Solution {
public:
pair<int, int> createPair(int a, int b) {
//your code goes here
}
};
Test Case

Input:

A
B