I think answer is 0 , given answer is 3
@Chandrabhan Vishwa 1
Shoudnt the answer be 7 because the inner loop is executed once for each entry of the outer loop.
also their is no distinct keyword.
so according to me the output of the above should be 1,1,3,3,1,5,5.
According to their site