There was no other input given by the interviewer. They just pasted this in the file and said lets say we have this input then output looks like this.
Input:
1 left 3
1 left 2
3 left 2
3 right 1
1 above 2
1 below 3
3 above 2Output:
_, 3, _
1, _, _,
_, _, 2