Programming problem

Hi i have got a programming problem which my teacher gave me yesterday.
Which goes like this:

Firstly we take input in array format:

1 2 1 3
1 2 3 1 3
2 1 2 1
2 1 1 3 3

then to  print o/p 
firstly we check number:count increment count for each row and then move to next number  and we       only check for its first instance
like for example:
1:4    2:4  3:3
12:3   11:4   13:3 21:4  23:3   33:2
121:3  113:3  123:2  213:2
1213:2

if anybody could solve this problem please let me know?

i did not understand what actually is the expected output ?

2 Likes

Can you be more clear in specifying problem statement.

by what I understand,seems like 33 should not be in the output?