Given a positive integer n, return the smallest positive integer that is a multiple of both 222 and n.
n
Constraints:
1≤1 \leq1≤ n ≤150\leq 150≤150
Now, let’s take a moment to make sure you’ve correctly understood the problem. The quiz below helps you check if you’re solving the correct problem:
Smallest Even Multiple
Given the input n = 149, what is the smallest positive integer that is a multiple of both 222 and 149149149?
n = 149
149149149
150150150
298298298
297297297
We have a game for you to play. Rearrange the logical building blocks to develop a clearer understanding of how to solve this problem.
Implement your solution in the following coding playground.