give array num n integer numsi range 1 n return array integer range 1 n appear num Example 1input num 43278231output 56example 2input num 11output 2 Constraintsn numslength1 n 1051 numsi n Follow could extra space on runtime you assume return list count extra space