Example: n = 3 and in run time I should be able to give only three inputs and not above 3 and that to space-separated 2 3 4
Note: The space separation should be done